package cn.itcalvin.sncoal.cth.pojo.response.config;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Data
public class RespConfigZb {
    @ApiModelProperty(value="主键")
    @NotNull(message = "主键不能为null")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value="系统ID")
    @NotNull(message = "系统ID不能为null")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long systemId;

    @ApiModelProperty(value="内容")
    @NotBlank(message = "内容不能为空")
    private String content;

    @ApiModelProperty(value="内容详情")
    @NotBlank(message = "内容详情不能为空")
    private String contentDesc;

    @ApiModelProperty(value="指标内容")
    @NotBlank(message = "指标内容不能为空")
    private String zbContent;

    @ApiModelProperty(value="评分方法")
    @NotBlank(message = "评分方法不能为空")
    private String pfMethod;

    @ApiModelProperty(value="为null代表共用，否则属于某个矿的指标")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long mineId;

    @ApiModelProperty(value="指标满分值")
    @NotNull(message = "指标满分值不能为null")
    private BigDecimal zbTotalScore;

    @ApiModelProperty(value="0.都无 1.有无瓦斯智能抽采 2.有无瓦斯智能防突 3.有无立井提升 4.有无轨道运输")
    @NotNull(message = "0.都无 1.有无瓦斯智能抽采 2.有无瓦斯智能防突 3.有无立井提升 4.有无轨道运输不能为null")
    private Integer state;

    @ApiModelProperty(value="指标明细")
    private List<RespConfigZbAndDetails> zbDetailsList;
}
